package sctu.edu.java.year2016.team01.xuhanmei.day20160522.practice2;

/**
 * Created by Administrator on 2016/5/24.
 */
import java.util.Arrays;//导入java.util.Arrays类
public class Fill1 {
    public static void main(String[] args) {
        int a[]=new int[]{1,2,33,44,55,66,};
        Arrays.fill(a,7);
        for(int i=0;i<a.length;i++){
            System.out.println("第"+(i+1)+"个元素是："+a[i]);
        }
    }
}
